package com.sdjzu.wanfuying.androiddesign.mvvm.student;

import android.os.Bundle;

import com.sdjzu.wanfuying.androiddesign.R;
import com.sdjzu.wanfuying.androiddesign.base.BaseActivity;
import com.sdjzu.wanfuying.androiddesign.databinding.StudentViewDataBinding;

public class StudentActivity extends BaseActivity {
    private StudentViewModel studentViewModel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentViewWithDataBinding(R.layout.activity_student);

        studentViewModel = new StudentViewModel();
        getViewDataBinding(StudentViewDataBinding.class).setVm(studentViewModel);
        // loopOnUiThread(() -> studentViewModel.refresh(), 1000, 1000);
    }

}
